import { defHttp } from "@/utils/http";

// ERP 药品相互作用API
export const drugInteractionApi = {
	// 获得药品相互作用分页
	drugInteractionList: async (params: any) => {
		return await defHttp.get({ url: `/whs/drug-interaction/page`, params });
	},
	// 新增药品相互作用
	drugInteractionCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/drug-interaction/create`, data });
	},

	// 修改药品相互作用
	drugInteractionUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/drug-interaction/update`, data });
	},

	// 删除药品相互作用
	drugInteractionDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/drug-interaction/delete?id=` + id });
	}
};
